using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN GiayToSinhVienService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: GiayToSinhVienService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class GiayToSinhVienService : IGiayToSinhVienService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: GiayToSinhVien_ID</para>
		/// <para>Output: GiayToSinhVienEntity</para>
		///</summary>
		public GiayToSinhVienEntity SelectOne(int GiayToSinhVien_ID){
			GiayToSinhVienDAO dao = new GiayToSinhVienDAO();
			return dao.SelectOne(GiayToSinhVien_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of GiayToSinhVienEntity</para>
		///</summary>
		public List<GiayToSinhVienEntity> SelectAll(){
			GiayToSinhVienDAO dao = new GiayToSinhVienDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			GiayToSinhVienDAO dao = new GiayToSinhVienDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of GiayToSinhVienEntity</para>
		///</summary>
		public List<GiayToSinhVienEntity> SelectAllFilter(string strFilter){
			GiayToSinhVienDAO dao = new GiayToSinhVienDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			GiayToSinhVienDAO dao = new GiayToSinhVienDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: GiayToSinhVienEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(GiayToSinhVienEntity o){
			GiayToSinhVienDAO dao = new GiayToSinhVienDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: GiayToSinhVienEntity</para>
		/// <para>Output: GiayToSinhVienEntity</para>
		///</summary>
		public GiayToSinhVienEntity SaveRet(GiayToSinhVienEntity o){
			GiayToSinhVienDAO dao = new GiayToSinhVienDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of GiayToSinhVienEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<GiayToSinhVienEntity> list){
			GiayToSinhVienDAO dao = new GiayToSinhVienDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of GiayToSinhVienEntity</para>
		/// <para>Output: List of GiayToSinhVienEntity</para>
		///</summary>
		public List<GiayToSinhVienEntity> SaveListRet(List<GiayToSinhVienEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: GiayToSinhVienEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(GiayToSinhVienEntity o){
			GiayToSinhVienDAO dao = new GiayToSinhVienDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of GiayToSinhVienEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<GiayToSinhVienEntity> list){
			GiayToSinhVienDAO dao = new GiayToSinhVienDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateLoaiGiayTo_ID</para>
		/// <para>Input: NewLoaiGiayTo_ID,GiayToSinhVien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateLoaiGiayTo_ID(int NewLoaiGiayTo_ID,int GiayToSinhVien_ID){
			GiayToSinhVienDAO dao = new GiayToSinhVienDAO();
			return dao.UpdateLoaiGiayTo_ID(NewLoaiGiayTo_ID,GiayToSinhVien_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateSinhVien_ID</para>
		/// <para>Input: NewSinhVien_ID,GiayToSinhVien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateSinhVien_ID(int NewSinhVien_ID,int GiayToSinhVien_ID){
			GiayToSinhVienDAO dao = new GiayToSinhVienDAO();
			return dao.UpdateSinhVien_ID(NewSinhVien_ID,GiayToSinhVien_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateSoLuong</para>
		/// <para>Input: NewSoLuong,GiayToSinhVien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateSoLuong(int NewSoLuong,int GiayToSinhVien_ID){
			GiayToSinhVienDAO dao = new GiayToSinhVienDAO();
			return dao.UpdateSoLuong(NewSoLuong,GiayToSinhVien_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateGhiChu</para>
		/// <para>Input: NewGhiChu,GiayToSinhVien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateGhiChu(string NewGhiChu,int GiayToSinhVien_ID){
			GiayToSinhVienDAO dao = new GiayToSinhVienDAO();
			return dao.UpdateGhiChu(NewGhiChu,GiayToSinhVien_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateDaTra</para>
		/// <para>Input: NewDaTra,GiayToSinhVien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateDaTra(bool NewDaTra,int GiayToSinhVien_ID){
			GiayToSinhVienDAO dao = new GiayToSinhVienDAO();
			return dao.UpdateDaTra(NewDaTra,GiayToSinhVien_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateNgayTra</para>
		/// <para>Input: NewNgayTra,GiayToSinhVien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateNgayTra(DateTime NewNgayTra,int GiayToSinhVien_ID){
			GiayToSinhVienDAO dao = new GiayToSinhVienDAO();
			return dao.UpdateNgayTra(NewNgayTra,GiayToSinhVien_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: GiayToSinhVienEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(GiayToSinhVienEntity o){
			GiayToSinhVienDAO dao = new GiayToSinhVienDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: GiayToSinhVien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int GiayToSinhVien_ID){
			GiayToSinhVienDAO dao = new GiayToSinhVienDAO();
			return dao.DeleteByID(GiayToSinhVien_ID);
		}
		#endregion

		#region Select join to LoaiGiayToSinhVien functions
		#endregion

		#region Select join to LoaiGiayTo functions
		#endregion

		#region Select join to SinhVien functions
		#endregion

		#region Select,delete by GiayToSinhVien_ID functions
		#endregion

		#region Select,delete by LoaiGiayTo_ID functions
		#endregion

		#region Select,delete by SinhVien_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END GiayToSinhVienWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

